<template>
	<view class="life">
		<view class="h-t">
			便民服务
			<view class="icon">
				<uni-icons type="search" size="20"></uni-icons>
				<uni-icons type="scan" size="20"></uni-icons>
			</view>
		</view>
		<view class="head">
			<swiper class="swiper" style="height: 250rpx; background-color: #fff;" circular="true" indicator-dots="true" autoplay="true" interval="3000" duration="1000">
				<swiper-item>
					<view class="swiper-item"><image src="/static/home/s1.png" mode="widthFix"></image></view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item"><image src="/static/home/s2.png" mode="widthFix"></image></view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item"><image src="/static/home/s3.png" mode="widthFix"></image></view>
				</swiper-item>
			</swiper>
		</view>
		<view class="section">
			<view class="one">
				<view class="img"><image src="/static/new/2.png" mode=""></image></view>
				<view class="t">场馆预约</view>
			</view>
			<view class="one">
				<view class="img"><image src="/static/new/3.png" mode=""></image></view>
				<view class="t">心通桥</view>
			</view>

			<view class="one">
				<view class="img"><image src="/static/new/4.png" mode=""></image></view>
				<view class="t">水电气暖</view>
			</view>
			<view class="one">
				<view class="img"><image src="/static/new/5.png" mode=""></image></view>
				<view class="t">钱包缴费</view>
			</view>
		</view>

		<view class="ting">
			<view class="t">
				<view class="t-l">
					附近
					<text style="color: #1e9fff">0</text>
					停车场
				</view>
				<view class="you">
					查看全部
					<uni-icons type="right" size="18" color="gray"></uni-icons>
				</view>
			</view>
			<view class="c">当前区域暂无推荐停车场</view>
		</view>
		<view class="jian">
			<view class="t">健康医疗</view>
			<view class="c">
				<view class="c1">疫情防护服务</view>
				<view class="c2">核酸检测 | 疫苗接种| 政策公告</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	}
};
</script>

<style lang="less">
.jian {
	margin-top: 20rpx;
	.t {
		font-size: 40rpx;
		color: #333;
		font-weight: bold;
	}
	.c {
		margin-top: 20rpx;
		border-radius: 20rpx;
		display: flex;
		flex-direction: column;
		background-color: #cbf4f7;
		box-sizing: border-box;
		padding: 30rpx 20rpx;
		.c1 {
			font-weight: bold;
			font-size: 18px;
		}
		.c2 {
			margin-top: 10rpx;
			color: gray;
			font-size: 30rpx;
		}
	}
}
.ting {
	margin-top: 20rpx;
	.t {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 80rpx;
		.t-l {
			font-size: 40rpx;
			color: #333;
			font-weight: bold;
		}
		.you {
			color: gray;
			font-size: 30rpx;
			display: flex;
			align-items: center;
		}
	}
	.c {
		box-shadow: 0px 0px 5px 1px #ccc;
		height: 230rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #555;
		border-radius: 20rpx;
	}
}
.life {
	box-sizing: border-box;
	padding: 0px 20rpx;
}
.h-t {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 80rpx;
	position: relative;

	.icon {
		position: absolute;
		right: 20rpx;
		width: 100rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
}
.section {
	margin-top: 20rpx;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
	.one {
		width: calc(100% / 4);
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		.img {
			width: 100rpx;
			height: 100rpx;
			margin-bottom: 10rpx;
		}
	}
}
.head {
	border-radius: 20rpx;
	overflow: hidden;
}
image {
	width: 100%;
	height: 100%;
}
.swiper {
	.swiper-item {
		width: 750rpx;
		height: 250rpx;
	}
	/deep/ .uni-swiper-dot {
		// 指示点元素默认样式
		width: 13rpx !important;
		height: 13rpx !important;
		background: #dddedd !important;
	}

	/deep/ .uni-swiper-dot-active {
		// 指示点元素激活（当前选中）状态样式
		width: 13rpx !important;
		height: 13rpx !important;
		background: #0094fd !important;
		border-radius: 4rpx;
	}
}
</style>
